########################### Ultimate image ############################
FROM docker-hub.supor.com/jinquan/alpine:3.13-jq

##-> image's description & author
MAINTAINER jinquan ljquan@supor.com
LABEL Description="kratos API demo(Golang Project Name: mytest0), Routine configuration file use Consul Key/Value"

##-> copy executable objects to target image
COPY ./bin/mytest0 /app/kratos_api_demo

##-> copy app's other files to target image
COPY ./cicd/version /app/

ADD cicd/entrypoint.sh /usr/sbin/
RUN chmod +x /usr/sbin/entrypoint.sh

EXPOSE 22
EXPOSE 8000
EXPOSE 9000

#VOLUME [ "/app/log" ]

ENTRYPOINT ["/usr/sbin/entrypoint.sh"]